package services

import (
	"irisfarm/app/models"
	"irisfarm/app/repositories"
)

type ExampleServer struct {
	BaseServer
}

func (e *ExampleServer) GetName() interface{} {
	example := models.ExampleModel{Name: "ken", Age: 32}
	return example
}

func (e *ExampleServer) SayHello() (string, error) {
	r := repositories.ExampleRepository{}
	result, err := r.SayHello()

	if err != nil {
		return "", err
	}

	return result, nil
}
